Testing Metamodels
نویسندگان
چکیده
In this paper, we deal with errors in metamodels. Metamodels define the abstract syntax of modeling languages. They play a central role in the Model-Driven Architecture. Other artifacts like models or tools are based on them and have to be changed if the metamodel is changed. Consequently, correcting errors in a metamodel can be quite expensive as dependent artifacts have to be adapted to the corrected metamodel. We argue that metamodels should be tested systematically with automated tests. We present a corresponding approach that allows automated metamodel testing based on a test specification. From a test specification, multiple test models can be derived. Each test model defines a potential instance of the metamodel under test. A positive test model defines a potential instance that should be an actual instance of the metamodel; a negative test model defines one that should not. We exemplify our approach with a metamodel for defining a company’s structure. Finally, we present MMUnit, an implementation of our approach that builds on the Eclipse platform and integrates the JUnit framework. MMUnit allows to test EMF-based metamodels, which can contain additional constraints, e.g. constraints expressed in OCL.
منابع مشابه
Difference-based Conformance Checking for Ecore Metamodels
During modern model-driven development processes, generators and higherorder transformations are used to create metamodels with short life cycles. Since these metamodels often differ from each other only in small parts, instances as well as metamodels may be re-used if the difference between them does not lead to a violation of instance conformance. Existing co-evolution approaches describe thi...
متن کاملAn approach to the co-creation of models and metamodels in Enterprise Architecture Projects
The linguistic conformance and the ontological conformance between models and metamodels are two different aspects that are frequently mixed. This specifically occurs in the EMF framework resulting in problems such as the incapability to load and modify metamodels at runtime. In this paper we present a strategy to solve this problem by separating the ontological and the linguistic aspects of a ...
متن کاملA Metamodeling Framework for Promoting Flexibility and Creativity Over Strict Model Conformance
This paper defines FlexiMeta, a metamodeling framework intended to promote more flexibility and creativity while not compromising validation through model conformance. It advocates less coupling between models and metamodels in order to make the creation of models and user-defined metamodels possible in an arbitrary order. It comes along with a generic process structured into several phases. Fo...
متن کاملIntegration of Triple Graph Grammars and Constraints
Metamodels are often augmented with additional constraints that must be satisfied by valid instances of these metamodels. Such constraints express complex conditions that cannot be expressed in the metamodel itself. Model transformations have to take such constraints of the source and target metamodels into account. Given a valid source model, which satisfies the source constraints, a model tra...
متن کاملEstimating and Validating Nonlinear Regression Metamodels in Simulation
Frequently, the main objective of statistically designed simulation experiments is to estimate and validate regression metamodels, where the regressors are functions of the design variables and the dependent variable is the system response. In this article, a weighted least squares procedure for estimating the unknown parameters of a nonlinear regression metamodel is formulated and evaluated. S...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2008